#!/bin/bash

numProcess=`ps -ef | wc -l`
numPorts=`lsof -n -i -P | wc -l`

if [ $numProcess > 2 ]
then
 echo There are $numProcess processing running
 echo There are $numPorts ports open
fi
